<?php
    require("userCentreLogic.Class.php");

    $qq  = "313616213";
    $msn = "xray.fight@hotmail.com";
    $uLogic = new userCentreLogic();
    assert  ($uLogic->setUserInfo(1, array("QQ"=>$qq, "sb"=>1)));
    $uInfo = $uLogic->getUserInfo(1);
    assert ($uInfo["QQ"] == "313616213");

    assert  ($uLogic->setUserInfo(1, array("MSN" => $msn, "sb"=>"1")));
    $uInfo = $uLogic->getUserInfo(1);
    assert ($uInfo["QQ"] == $qq);
    assert ($uInfo["MSN"] == $msn);

    assert  ($uLogic->setUserInfo(1, array("MSN" => 123, "sb"=>"1")));
    $uInfo = $uLogic->getUserInfo(1);
    assert ($uInfo["QQ"] == $qq);
    assert ($uInfo["MSN"] == $msn);
    $uInfo = $uLogic->getUserInfo(1);
    $uInfo = $uLogic->getUserInfo(1);
    $uInfo = $uLogic->getUserInfo(1);
    $uInfo = $uLogic->getUserInfo(1);
    $uInfo = $uLogic->getUserInfo(1);

    assert  ($uLogic->setUserInfo(2, array("QQ"=>$qq, "sb"=>1)));
    $uInfo = $uLogic->getUserInfo(2);
    assert ($uInfo["QQ"] == "313616213");

    assert  ($uLogic->setUserInfo(2, array("MSN" => $msn, "sb"=>"1")));
    $uInfo = $uLogic->getUserInfo(2);
    assert ($uInfo["QQ"] == $qq);
    assert ($uInfo["MSN"] == $msn);

    var_dump($uLogic->getUserInfoList(array(1,2,3,4,5,6,7,8)));
?>
